{include file="header.html"}
<div class="row">
  <div class="span12"> {include file="koudai_order/nav.html"}
    <form method="get" action="{$appadmin}">
      <input type="hidden" name="m" value="koudai_order" />
      <input type="hidden" name="a" value="default" />
      <div class="mgb-10" > 订单号：
        <input type="text" name="orderno" value="{$smarty.get.orderno}" />
        用户：
        <input type="text" name="nickname" value="{$smarty.get.nickname}" class="w100" />
        状态：
        <select name="s_status" class="w100">
          <option value="-1">请选择</option>
          
{foreach item=c key=k from=$order_status_list}
{if $k lt 99}
          <option value="{$k}" {if $smarty.get.s_status eq $k} selected="selected" {/if}>{$c}</option>
          {/if}
{/foreach}

        </select>
        支付：
        <select name="s_ispay" class="w100">
          <option value="-1">请选择</option>
          
{foreach item=c key=k from=$order_ispay} 

          <option value="{$k}" {if $smarty.get.s_ispay eq $k} selected="selected"{/if}>{$c}</option>
          
{/foreach}

        </select>
      </div>
      <div class="mgb-10" > 开始时间：
        <input type="text" name="start_time" value="{$smarty.get.start_time}"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
        结束时间：
        <input type="text" name="end_time" value="{$smarty.get.end_time}"   onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
        {get data=scs model=site_city fun=children(0)}
        <select name="sc_id">
        	<option value="0">全部楼栋</option>
            {foreach item=c from=$scs}
            <option value="{$c.sc_id}" {if get('sc_id') eq $c.sc_id} selected{/if}>{$c.title}</option>
            {if $c.child}
            
            {foreach item=cc from=$c.child}
            <option value="{$cc.sc_id}" {if get('sc_id') eq $cc.sc_id} selected{/if}>|--{$cc.title}</option>
            {/foreach}
            {/if}
            {/foreach}
        </select>
        <input type="submit" value="搜索" class="btn btn-warning" />
        <div class="rscount">总计：<span class="num">{$rscount}</span>个订单，总金额：￥<span class="num">{$total_money}</span>元，本页金额：￥<span class="num">{$page_total_money}</span></div>
        <div class="clearfix"></div>
      </div>
    </form>
    <table width="100%" class="table table-bordered">
      <tr>
        <td>ID</td>
        <td>订单号</td>
        <td>联系方式</td>
        <td>下单时间</td>
        <td>支付状况</td>
        <td>订单类型</td>
        <td>价格</td>
        <td>状态</td>
        <td>操作</td>
      </tr>
      {foreach item=c from=$data}
      <tr>
        <td>{$c.order_id}</td>
        <td>{$c.orderno}</td>
        <td>{$c[address].truename}  
          {$c[address].telephone} <br>{$c[address].p_c_t}  宿舍：{$c[address].sushe}</td>
        <td>{$c.dateline|date:m-d H:i}</td>
        <td>{$order_ispay[$c.ispay]}</td>
        <td>{$order_type_list[$c.type_id]}</td>
        <td>{$c.money}</td>
        <td>{$order_status_list[$c.status]} {$c.whocancel}</td>
        <td><a href="{$appadmin}?m=koudai_order&a=show&order_id={$c.order_id}">查看</a></td>
      </tr>
      {/foreach}
    </table>
    {$pagelist} </div>
</div>
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script> 
{include file="footer.html"}